package com.yanfei.zero.domain.user.model.perms;

import com.yanfei.zero.domain.user.model.BaseModel;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

@Entity
@Table(name="cm_perms")
@Schema(name = "权限")
@Data
public class CmPerms extends BaseModel{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "perms_id")
private long permsId;

@Schema(name = "角色ID")
@Column(name = "role_id")
private Integer roleId;

@Schema(name = "资源ID")
@Column(name = "resource_id")
private Integer resourceId;

@Schema(name = "资源值,例如指定只能看到北京市的数据")
@Column(name = "resource_value")
private String resourceValue;
}
